Skip to main content

Set customer details

PATCH 

/baskets/:id/set-customer-details

Sets one or more customer detail fields on the basket.

Request

Path Parameters

    id stringrequired

    The id of the basket

Header Parameters

    x-api-key stringrequired

    The API key for the given store

Body

required
    customerDetails object[]
  • Array [
  • type Models.CustomerDetailFieldTyperequired

    Possible values: [Email, FirstName, LastName, PhoneNumber, BillingAddress]

    The type of a customer detail field.

    value object

    A value that corresponds to the data type expected by the customer detail field type. For example, an email address if the type is 'Email'.

  • ]

Responses

This is an asynchronous operation. Upon completion, the basket must be refetched.

Loading...